design the application process based on the information we currently have.The application process is divided into three parts,2.2.1 Application Launch
If the Bluetooth feature is not turned on, start the app and prompt to turn on the Bluetooth feature.
If it cannot be discovered by other Bluetooth devices, it will be prompted to be discovered by oth
ObjectiveWith " calculators " and " video players " We've been able to start developing some more decent apps.Today, we're going to start making a " Bluetooth chat " app. This application is actually very simple, there is no cool interface, is one-on-one, through Bluetooth connection two devices, let two people send each other information.Do not think it is too b
Long time to sit in front of the computer chatting is very tired, have you ever thought of lying down to chat, or to chat while doing other things? The headphone line is always a drag, it's too inconvenient. In the computer market for a long time, only wireless headset but no wireless microphone, can not only listen to not say? It would be nice to move like a mobile phone. Look at the new phone with the
The 6th section applies the beautification and the consummationNow, we can also add multi-language support for the chat application and about the interface, the color and size used to define the resource file, so that the Bluetooth chat application of the beans is relatively complete.These two parts in the previous " Calculator " chapter, has already introduced,
The author introduces This example here is the Google SDK provides a Bluetooth chat program, simple but the information is huge, very suitable for beginners to learn Bluetooth knowledge.
Before learning This example, please read and understand the working principle and implementation mechanism of the socket, the author of this blog has a detailed description:
h
Bluetooth Chat Room code:
Https://github.com/michaeltom/bluetoothchat.git
This article will be implemented in the next time Bluetooth chat room function.
Features are as follows:
1. The app can be either a server or a client
2. When you need to connect other users, press the menu key, bring up the menu, select "Select
[Video] basic learning-free Android development: Bluetooth chat room APP (3), androidapp
Basic Learning-free Android development: Lecture 3 of the Bluetooth chat room APP
3.1 ImageView and ImageButton controls3.2 details on the GridView Control3.3 SimpleAdapter3.4 event listener: OnItemClickListener3.5 input and di
0 Fundamentals Android Development: Bluetooth chat room App Third speaking3.1 ImageView, ImageButton control specific explanation3.2 GridView Control specific explanation3.3 Simpleadapter Adapter Specific explanation3.4 Event Listener: Onitemclicklistener3.5 entering and displaying emoji imagesWatch Online:http://www.3g-edu.org/news/video023.htmvideo Download:HTTP://PAN.BAIDU.COM/S/1KTMINQF "Video" 0 Fundam
[Video] basic learning-free Android development: Bluetooth chat room APP (4), androidapp
Zero basic learning Android development: Bluetooth chat room APP Lecture 4
4.1 Use of the ListView Control4.2 BaseAdapter details4.3 ListView distribution and rolling events4.4 ListView event listener: OnItemClickedListener
0 Fundamentals of Android development: Bluetooth chat room app first talk1. Android Introduction and Environment building: the most efficient Android learning in history1.1 Google's size strategy1.2 Internet of Things and cloud computing1.3 Intelligent XX Equipment1.4 Android Development Prospects1.5 Android Enterprise demand and employment pay1.6 Android Framework Introduction1.7 Build Android development
Software name: Bluetooth chat room
System Requirements: android2.1 and above
Update log: V1.0
Target Users: All Users
Software features: free online chat, no information fee, traffic fee, convenient, simple, practical, and permanently free, can still be used when mobile phone signals are blocked, especially when using the exam (You know ).
Software
(extra_device_address, ADDRESS); //Set result and finish this ActivitySetresult (ACTIVITY.RESULT_OK, intent); Finish (); }Go back to the last Aty deal: Private void Boolean secure) { // Get The device MAC address String address = Data.getextras (). getString (devicelistactivity.extra_device_address); Get the Bluetoothdevice object bluetoothdevice device = mbluetoothadapter.getremotedevice (address); // attempt to connect to the device mchat
Bluetooth 1.2 vs 1.1:
1. Adaptive Frequency Hopping (AFH ):Adaptive Frequency Hopping TechnologyThe main function is to reduce interference problems between Bluetooth products and other wireless communication devices.
2. Extended synchronous connection-oriented links (ESCO ):Extended synchronous link-oriented channel technologyIt is used to provide audio transmission with high QoS, and can further meet the
Document directory
References
The previous two Articles respectively described how to use Windows Embedded Source Tools for Bluetooth and 32feet. NET for Bluetooth development under. NET Compact Framework. The links are as follows:Windows Embedded Source Tools for Bluetooth development under. NET Compact Framework32feet. NET for
How to Use Android Bluetooth (Bluetooth details) and Android bluetoothI. Communication between bluetooth devices consists of four processes.
Configure a bluetooth device to search for devices that may match in the LAN to connect to data transmission between devices.
Ii. completion of detailed programming
1. Activate
If the local Bluetooth device can be found by other nearby bluetooth devices, you can use the following method with comments in the code.
Of course, you need to set up your Bluetooth device to be detected by nearby bluetooth devices (usually 2 minutes)
In settings-Bluetooth-
(1) If you want to use the Bluetooth Android phone, you need to add Bluetooth access to the Androidmanifest file.Note: Permissions should be added to the Androidmanifest file (2) to determine if there is a Bluetooth device that can be used, if there is to determine whether the Bluetooth device is turned on, if not open
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.